import { Commit } from "vuex";
interface ITicketList {
  id: number;
  title: string;
  yuanjia: number;
  jiage: number;
  istmall: number;
  xiaoliang: number;
  quanJine: number;
  pic: string;
  sellerId: string;
  renqi: number;
  shopName: string;
  shortShowText: string;
  juOnlineEndTime: string;
  juOnlineStartTime: string;
  itemId: string;
  dtitle: string;
}
interface ITicketTabs {
  [key: string]: any;
}
interface IState {
  ticketList: ITicketList[];
  ticketTabs: ITicketTabs[];
}
interface ITicket {
  state: IState;
  actions: {
    getTicketList: (
      { commit }: { commit: Commit },
      { categoryId }: { categoryId: string }
    ) => void;
    getTicketTabs: ({ commit }: { commit: Commit }) => void;
  };
  mutations: {
    GET_TICKET_LIST: (
      state: IState,
      { payload }: { payload: ITicketList[] }
    ) => void;
    GET_TICKET_TABS: (
      state: IState,
      { payload, list }: { payload: ITicketTabs[]; list: ITicketList[] }
    ) => void;
  };
  namespaced: boolean;
}
export { ITicket };
